/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年9月8日 下午2:51:43
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.ssm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.woniu.ssm.domain.Blog;

/**
 * @author Administrator
 *
 */
public interface BlogMapper {
	@Select("select * from blog")
	public List<Blog> selectListBlog();
	@Select("select * from blog where id = #{id}")
	public Blog selectBlog(int id);
	@Insert("insert into blog values(0,#{title},#{content},#{categories},#{author})")
	public void addBlog(Blog blog);
	@Delete("delete from blog where id = #{id}")
	public void delBlog(int id);
	@Update("update blog set title = #{title},content = #{content},categories = #{categories},author = #{author} where id = #{id}")
	public void updateBlog(Blog blog);
}
